In the previous practice exercise, you practice the use switch
activity in a workflow. In this video you will look at some
differences between the If and the switch activity. So let's get started. If and switch both are used for
decision control. However, there are a few
differences between them. If activity is most suitable for
taking a decision in your process. In contrast,
the switch activity is suitable for testing a given variables value
against a list of case values. If activity can check for
equality as well as logical expression. In contrast, the switch activity
can only check for equality. In case of if activity,
the expression decides whether the statements inside then or
else section is to be executed. In switch activity the expression
decides the case to be executed. After knowing the key
differences between the If and switch activities you can decide which
activity to use based on the scenario. If you have a workflow with
a lot of logic and conditions, then the if activity should be opted. In case your workflow requires
decision making based on values you can use the switch activity. And the next module you will learn
about loop activities and that's it for this video. Thanks for watching. [MUSIC]